import  http from '@/utils/http';

export async function preChargingAdd(params) {
  return http.post('/sysBillingSpecification/addPreset',params)
}

export async function preChargingEdit(params) {
  return http.post('/sysBillingSpecification/editPreset',params)
}

export async function preChargingList(params) {
  return http.get('/sysBillingSpecification/getPresetList',params)
}

export async function preChargingDetail(params) {
  return http.get('/sysBillingSpecification/getPreset',params)
}

export async function resourceManageList(params) {
  return http.get('/resource/getResource',params)
}

export async function resourceCustomAdd(params) {
  return http.post('/resource/addCustomResource',params)
}

export async function resourceCustomUpdate(params) {
  return http.post('/resource/editResource',params)
}

export async function packageList(params) {
  return http.post('/package/getPackageList',params)
}

export async function packageAdd(params) {
  return http.post('/package/addPackage',params)
}

export async function packageUpdate(params) {
  return http.post('/package/updatePackage',params)
}

export async function packageDetail(params) {
  return http.get('/package/getPackage',params)
}

export async function packageCopy(params) {
  return http.get('/package/copyPackage',params)
}

export async function packageStatus(params) {
  return http.post('/package/updatePackageStatus',params)
}

export async function packageRemove(params) {
  return http.get('/package/deletePackage',params)
}

export async function combinationList(params) {
  return http.post('/package/getCombinationByPage',params)
}

export async function combinationAdd(params) {
  return http.post('/package/addCombination',params)
}

export async function combinationUpdate(params) {
  return http.post('/package/updateCombination',params)
}

export async function resourceOptionList(params) {
  return http.post('/resource/getResourceList',params)
}

export async function discountList(params) {
  return http.post('/discount/getDiscountByPage',params)
}

export async function discountAdd(params) {
  return http.post('/discount/addDiscount',params)
}

export async function discountUpdate(params) {
  return http.post('/discount/updateDiscount',params)
}

export async function chargingList(params) {
  return http.post('/billingPlan/getPlanByPage',params)
}

export async function chargingAdd(params) {
  return http.post('/billingPlan/addPlan',params)
}

export async function chargingUpdate(params) {
  return http.post('/billingPlan/updatePlan',params)
}

export async function chargingInfo(params) {
  return http.get('/billingPlan/getPlan',params)
}

export async function chargingDetailList(params) {
  return http.post('/billingPlan/getPlanDetailByPage',params)
}

export async function chargingDetailAdd(params) {
  return http.post('/billingPlan/addPlanDetail',params)
}

export async function chargingDetailUpdate(params) {
  return http.post('/billingPlan/updatePlanDetail',params)
}

export async function chargingDetailInfo(params) {
  return http.get('/billingPlan/getPlanDetail',params)
}

export async function businessList(params) {
  return http.post('/sysEnterprise/getEnterpriseByPage',params)
}

export async function businessAdd(params) {
  return http.post('/sysEnterprise/addEnterprise',params)
}

export async function businessUpdate(params) {
  return http.post('/sysEnterprise/updateEnterprise',params)
}

export async function businessInfo(params) {
  return http.get('/sysEnterprise/getEnterprise',params)
}

export async function businessRemove(params) {
  return http.get('/sysEnterprise/deleteEnterprise',params)
}

export async function businessTypeList(params) {
  return http.get('/sysEnterprise/getEnterpriseCollection',params)
}

export async function chargingStatus(params) {
  return http.post('/billingPlan/updatePlanStatus',params)
}

export async function chargingDetailDelete(params) {
  return http.post('/billingPlan/removePlanDetail',params)
}

export async function chargingAndDetail(params) {
  return http.get('/billingPlan/getPlanTreeByEnterprise',params)
}

export async function expenseBillList(params) {
  return http.post('/bill/getBillByPage',params)
}

export async function expenseBillInfo(params) {
  return http.get('/bill/getBillDetailList',params)
}

export async function expenseBillStandardInfo(params) {
  return http.get('/bill/getStandardBillDetailList',params)
}

export async function expenseBillInvoiceList(params) {
  return http.get('/bill/getInvoice',params)
}

export async function expenseBillInvoiceAdd(params) {
  return http.post('/bill/addInvoice',params)
}

export async function expenseBillExport(params) {
  return http.downloadFile('/bill/exportBillDetail',params)
}

export async function chargingDetailPackageList(params) {
  return http.post('/billingPlan/getPlanDetailPackages',params)
}

export async function packageListByCombinationId(params) {
  return http.get('/package/getPackageListByCombinationId',params)
}

export async function discountDelete(params) {
  return http.get('/discount/deleteDiscount',params)
}

export async function packageTypeList(params) {
  return http.get('/package/getPackageType',params)
}

export async function contractList(params) {
  return http.post('/contract/getByPage',params)
}

export async function contractDelete(params) {
  return http.get('/contract/remove',params)
}

export async function contractAdd(params) {
  return http.post('/contract/add',params)
}

export async function contractUpdate(params) {
  return http.post('/contract/update',params)
}

export async function contractDetail(params) {
  return http.get('/contract/getById',params)
}

export async function projectList(params) {
  return http.post('/project/getByPage',params)
}

export async function projectDelete(params) {
  return http.get('/project/remove',params)
}

export async function projectAdd(params) {
  return http.post('/project/add',params)
}

export async function projectUpdate(params) {
  return http.post('/project/update',params)
}

export async function projectDetail(params) {
  return http.get('/project/getById',params)
}

export async function countryList(params) {
  return http.get('/contract/getCountry',params)
}

export async function chargingDelete(params) {
  return http.get('/billingPlan/removePlan',params)
}

export async function resourceDelete(params) {
  return http.get('/resource/deleteResource',params)
}

export async function expenseBillInvoiceDelete(params) {
  return http.get('/bill/deleteInvoice',params)
}